Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@turf/destination

Package Overview
Dependencies
Maintainers
9
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/destination

turf destination module

  • 7.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1M
decreased by-10.69%
Maintainers
9
Weekly downloads
 
Created

What is @turf/destination?

@turf/destination is a module from the Turf.js library that allows you to calculate the destination point given a starting point, distance, and bearing. It is useful for geospatial analysis and manipulation, particularly in applications involving mapping, navigation, and geographic data processing.

What are @turf/destination's main functionalities?

Calculate Destination Point

This feature allows you to calculate the destination point from a given starting point, distance, and bearing. The code sample demonstrates how to use the @turf/destination module to find a point 50 miles east of the starting point.

const turf = require('@turf/turf');

const start = turf.point([-75.343, 39.984]);
const distance = 50;
const bearing = 90;
const options = {units: 'miles'};

const destination = turf.destination(start, distance, bearing, options);
console.log(destination);

Other packages similar to @turf/destination

Keywords

FAQs

Package last updated on 09 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc